package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.SkuReduction;
import com.atguigu.common.to.SkuReductionTo;
import com.atguigu.common.to.SpuBoundTo;
import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.feign.impl.CouponFeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ：乔帅阳
 * @date ：Created in 2021/12/30 18:14
 * @modified By：
 */

@FeignClient(value = "gulimall-coupon",fallback = CouponFeignServiceImpl.class)
public interface CouponFeignService {


    @PostMapping("/coupon/spubounds/save")
    R saveSpuBouds(@RequestBody SpuBoundTo spuBoundTo);


    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReduction);
}
